#ifndef QAPP_H
#define QAPP_H

#include <QtWidgets/QMainWindow>
#include "ui_qapp.h"
#include "QtMultimedia/QMediaPlayer.h"
#include "QtMultimedia/QMediaPlaylist.h"

class QApp : public QMainWindow
{
	Q_OBJECT

public:
	QApp(QWidget *parent = 0);
	~QApp();

public:
	void AddMp3List();
	bool LoadBackGround();
	void SetBasicSetting();
	void InitMediaPlayer();
	void InitChildControl();
private slots:
	void onPlayClick(QModelIndex nIndex);
	void onOpenFile();
	void onSoundChange(int value);
	void onSetPostion();
private:
	Ui::QAppClass		ui;
	QMediaPlayer		*media_player_;
	QMediaPlaylist		*media_list_;
	QStringList			s_list_file_name_;
	QTimer				*pTime;
};

#endif // QAPP_H
